package com.ruoyi.business.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("修改密码-入参")
public class FrontChangePasswordDTO {

    @NotEmpty(message = "用户id不能为空")
    @ApiModelProperty("原始密码")
    private String oldPassword;

    @NotEmpty(message = "新密码不能为空")
    @ApiModelProperty("新密码")
    private String newPassword;

    @NotEmpty(message = "确认密码不能为空")
    @ApiModelProperty("确认密码")
    private String confirmPassword;

    @NotNull(message = "用户类型不能为空")
    @ApiModelProperty("用户类型(0：学生，1：家长，2：教师)")
    private String userType;
}
